package com.itheima.mapper;

import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    Member queryMember(@Param("telephone") String telephone);

    void addMember(Member member);

    OrderSetting queryOrderSettingByDate(Date orderDate);

    Order queryOrder(Order order);

    void addOrder(Order order);

    Map orderInfo(@Param("id") Integer id);

    int countOrderByDate(@Param("reportDate") String reportDate);

    int countOrderStatus(@Param("reportDate") String reportDate);

    int countOrderMoreDate(Date date);

    int countOrderStatusMoreDate(Date firstDayOfWeek);

    List<Map> hostSetmeal();

}
